package com.example.mapper;


import com.example.entity.SysOrganization;
import org.apache.ibatis.annotations.Delete;
import org.apache.ibatis.annotations.Select;

import java.util.List;

public interface SysOrganizationMapper {
    List<SysOrganization> selectAll(SysOrganization sysOrganization);

    void insert(SysOrganization sysOrganization);

    void update(SysOrganization sysOrganization);

    @Delete("delete from `sys_organization` where id=#{id}")
    void delete(Integer id);

    @Select("select * from sys_organization where username = #{username}")
    SysOrganization selectbyusername(String username);
}
